// 此处用于存放所以登录相关的接口请求
// 1.获取图形验证码
import request from '@/utils/request'
export const getPicCode = () => request.get('/captcha/image')

// 2.获取短信验证码
export const getMsgCode = (captchaCode, captchaKey, mobile) => request.post('/captcha/sendSmsCaptcha', {
  form: {
    captchaCode,
    captchaKey,
    mobile
  }
})

// 3.登录接口
export const codeLogin = (mobile, smsCode) => request.post('/passport/login', {
  form: {
    isParty: false,
    partyData: {},
    mobile,
    smsCode
  }
})
